package com.zhihuiyanche.common.util;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.ServletContext;

public class Constant
{

	public static Map<String, String>	systemMap	= new HashMap<String, String>();

	public static Map<String, String> getSystemMap()
	{
		return systemMap;
	}

	public static void setSystemMap(Map<String, String> systemMap, ServletContext sc)
	{
		Constant.systemMap = systemMap;
	}

	public static final String	BOOL_TRUE						= "1";
	public static final String	BOOL_Fasle						= "0";
	public static String		IDENTIFICATION					= "saasapp";
	public static String		TASKRESTURL						= "http://192.168.40.15/taskRest/post";
	public static String		PASS_WORD1_6					= "e10adc3949ba59abbe56e057f20f883e";

	/**
	 * 返回消息类型：文本
	 */
	public static final String	RESP_MESSAGE_TYPE_TEXT			= "text";

	/**
	 * 返回消息类型：音乐
	 */
	public static final String	RESP_MESSAGE_TYPE_MUSIC			= "music";

	/**
	 * 返回消息类型：图文
	 */
	public static final String	RESP_MESSAGE_TYPE_NEWS			= "news";

	/**
	 * 请求消息类型：文本
	 */
	public static final String	REQ_MESSAGE_TYPE_TEXT			= "text";

	/**
	 * 请求消息类型：图片
	 */
	public static final String	REQ_MESSAGE_TYPE_IMAGE			= "image";

	/**
	 * 请求消息类型：链接
	 */
	public static final String	REQ_MESSAGE_TYPE_LINK			= "link";

	/**
	 * 请求消息类型：地理位置
	 */
	public static final String	REQ_MESSAGE_TYPE_LOCATION		= "location";

	/**
	 * 请求消息类型：音频
	 */
	public static final String	REQ_MESSAGE_TYPE_VOICE			= "voice";

	/**
	 * 请求消息类型：推送
	 */
	public static final String	REQ_MESSAGE_TYPE_EVENT			= "event";

	/**
	 * 事件类型：subscribe(订阅)
	 */
	public static final String	EVENT_TYPE_SUBSCRIBE			= "subscribe";

	/**
	 * 事件类型：subscribe(订阅)
	 */
	public static final String	EVENT_TYPE_SCAN					= "SCAN";

	/**
	 * 事件类型：unsubscribe(取消订阅)
	 */
	public static final String	EVENT_TYPE_UNSUBSCRIBE			= "unsubscribe";

	/**
	 * 事件类型：CLICK(自定义菜单点击事件)
	 */
	public static final String	EVENT_TYPE_CLICK				= "CLICK";
	/**
	 * 圆周率
	 */
	public static final double	PI								= 3.14159265358979323;
	/**
	 * 地球半径
	 */
	public static final double	EARTHR							= 6371229;
	/**
	 * 百度地图ak
	 */
	public static final String	MAPAK							= "de4ZwcG285Dc9fsGCndi17pj";
	/**
	 * 一分钟毫秒数
	 */
	public static final long	ONE_MINUTE						= 60000L;
	/**
	 * 一小时毫秒数
	 */
	public static final long	ONE_HOUR						= 3600000L;
	/**
	 * 一 一天毫秒数
	 */
	public static final long	ONE_DAY							= 86400000L;
	/**
	 * 一周毫秒数
	 */
	public static final long	ONE_WEEK						= 604800000L;
	/**
	 * 时间间隔判断 几秒前
	 */
	public static final String	ONE_SECOND_AGO					= "秒前";
	/**
	 * 时间间隔判断 几分钟前
	 */
	public static final String	ONE_MINUTE_AGO					= "分钟前";
	/**
	 * 时间间隔判断 几小时前
	 */
	public static final String	ONE_HOUR_AGO					= "小时前";
	/**
	 * 时间间隔判断 几天前
	 */
	public static final String	ONE_DAY_AGO						= "天前";
	/**
	 * 时间间隔判断 几月前
	 */
	public static final String	ONE_MONTH_AGO					= "月前";
	/**
	 * 时间间隔判断 几年前
	 */
	public static final String	ONE_YEAR_AGO					= "年前";
	/**
	 * 跟路径
	 */
	public static final String	ROOTURL							= "/pages/weixin/admin/document";
	/**
	 * 正则表达式，匹配fck中的图片
	 */
	public static final String	PICPATTERN						= "img/upload/\\d{13,}\\.(jpg|gif|jpeg|png|bmp|swf|fla)";
	/**
	 * 前台搜索每页条数
	 */
	public static final int		SEARCHPAGE						= 20;
	/**
	 * 前台文章每页条数
	 */
	public static final int		DOCPAGE							= 10;
	/**
	 * 菜单拼凑url1
	 */
	public static final String	WXURL1							= "https://open.weixin.qq.com/connect/oauth2/authorize?appid=";
	/**
	 * 菜单拼凑url2
	 */
	public static final String	WXURL2							= "&redirect_uri=";
	/**
	 * 菜单拼凑url3
	 */
	public static final String	WXURL3							= "&response_type=code&scope=snsapi_base&state=";
	/**
	 * 菜单拼凑url4
	 */
	public static final String	WXURL4							= "#wechat_redirect";
	/**
	 * 订单状态：未完成
	 */
	public static final String	DISH_ORDER_SHOP					= "0";
	/**
	 * 订单状态：进行中
	 */
	public static final String	DISH_ORDER_PROGRESS				= "1";
	/**
	 * 订单状态：已完成
	 */
	public static final String	DISH_ORDER_COMPLATE				= "2";
	/**
	 * 订单状态：取消订单
	 */
	public static final String	DISH_ORDER_CANCLE				= "3";
	/**
	 * 订单状态：过度状态（如外卖的送餐、自取的自取等状态）
	 */
	public static final String	DISH_ORDER_TROPPO				= "4";
	/**
	 * 订单状态：订单过期
	 */
	public static final String	DISH_ORDER_EXPRIED				= "5";
	/**
	 * 订单支付状态：未支付
	 */
	public static final String	ORDER_DISH_UNPAY				= "0";
	/**
	 * 订单支付状态：已支付
	 */
	public static final String	ORDER_DISH_PAY					= "1";
	/**
	 * 公用状态：未生效
	 */
	public static final String	COMMON_STATUS_INVALID			= "01";
	/**
	 * 公用状态：生效
	 */
	public static final String	COMMON_STATUS_VALID				= "02";
	/**
	 * 公用状态：取消
	 */
	public static final String	COMMON_STATUS_CANCLE			= "03";
	/**
	 * 评论类型:门店评论
	 */
	public static final String	COMMENT_TYPE_STORE				= "0";
	/**
	 * 评论类型:订单评论
	 */
	public static final String	COMMENT_TYPE_ORDER				= "1";
	/**
	 * 自定义管理：菜谱显示
	 */
	public static final String	CUSTOMIZE_DISHSHOW				= "dish_show";
	/**
	 * 自定义管理：卡设置
	 */
	public static final String	CUSTOMIZE_CARD					= "card_show";
	/**
	 * 自定义管理：优惠券设置
	 */
	public static final String	CUSTOMIZE_COUPONS				= "coupons_show";
	/**
	 * 自定义管理：文字提示设置
	 */
	public static final String	CUSTOMIZE_TIP_CONTENT			= "tip_txt_show";
	/**
	 * 自定义管理：导航设置
	 */
	public static final String	CUSTOMIZE_MENU_DEPLOY			= "menu_deploy";
	/**
	 * 自定义管理：单个菜单的设置
	 */
	public static final String	CUSTOMIZE_MENU_DEPLOY_SINGLE	= "menu_deploy_single";
	/**
	 * 自定义管理：信息管理的背景图片设置
	 */
	public static final String	CUSTOMIZE_INFO_BACKGROUND		= "info_bg";
	/**
	 * 自定义管理：会员首页配置
	 */
	public static final String	CUSTOMIZE_CUSTOMER_INFO			= "customer_info";
	/**
	 * 自定义管理：官网首页配置
	 */
	public static final String	CUSTOMIZE_GOVER_INFO			= "gover_info";
	/**
	 * 自定义管理：官网首页配置
	 */
	public static final String	CUSTOMIZE_MYCARD_INFO			= "mycard_info";
	/**
	 * 自定义管理：评论自定义审核配置
	 */
	public static final String	CUSTOMIZE_COMMENT_VERIFY		= "comment_verify";
	/**
	 * 自定义管理：自动签名
	 */
	public static final String	CUSTOMIZE_AUTO_SIGN				= "auto_sign";
	/**
	 * 自定义管理：支付安全设置
	 */
	public static final String	CUSTOMIZE_PAY_INFO				= "customer_pay";
	/**
	 * 游戏状态：未开始
	 */
	public static final int		GAME_STATUS_UNSTART				= 0;
	/**
	 * 游戏状态：进行中
	 */
	public static final int		GAME_STATUS_STARTING			= 1;
	/**
	 * 游戏状态：删除
	 */
	public static final int		GAME_STATUS_DELETE				= 2;
	/**
	 * 商户号站点详细信息
	 */
	public static final String	TENANT_WEBSITE_DETAIL			= "tenant_website_detail";

}
